<?
class People{
	
	public function checkActivePeople()
	{
		if ($_COOKIE['active_people_pid']!=1)
		{
			setcookie('active_people_pid',1,time()+60*60*24);
			$temp = $_COOKIE['active_people_cnt']*1+1;
			setcookie('active_people_cnt',$temp,time()+60*60*24*14);
		}
	}
	
	public function getCNTActive()
	{
		return $_COOKIE['active_people_cnt']*1;
	}
}
?>